#include<stdio.h>
#include <iostream>
#include<math.h>
#include<iomanip>
using namespace std;
void slove()
{
float a,b,c,delta;
while(cin>>a>>b>>c)
{
delta=b*b-4*a*c;
if(delta>=0)
{
cout<<setiosflags(ios::fixed)<<setprecision(3)<<"x1="<<(-b+sqrt(delta))/(2*a)<<" "<<"x2="<<(-b-sqrt(delta))/(2*a)<<endl;
}
else
{
cout<<setiosflags(ios::fixed)<<setprecision(3)<<"x1="<<-b/(2*a)<<'+'<<sqrt(-delta)/(2*a)<<'i'<<" "<<"x2="<<-b/(2*a)<<'-'<<sqrt(-delta)/(2*a)<<'i'<<endl;
}
}
}
int main()
{
slove();
return 0;
}
